<#assign subTitle = "用户登入">
<#assign scripts = "<script type=\"text/javascript\" src=\"/static/js/Validform_min.js\"></script>">
<#assign styles = "<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/css/validation.css?v=0.0.1\" />">
<#include "header.ftl">

<script>
$(document).ready(function() {
	$("#loginForm").Validform({
		btnSubmit:"#btn_sub",
		tiptype:function(msg,o,cssctl){
			if(o.obj){
				var objtip=o.obj.parent().parent().find(".Validform_checktip");
				cssctl(objtip,o.type);
				objtip.text(msg);
			}
		},
		tipSweep:false,
		postonce:true
	});
});
</script>

<body>
  <div id="header" class="wraper">
  </div>
  <div id="bodier" class="wraper">
	<form id="loginForm" action="/account/login.do" method="post">
		<div class="aline">
			<label>用户名：</label>
			<div>
				<input type="text" name="name" datatype="e" nullmsg="请输入邮箱地址！" errormsg="请输入邮箱地址！"/>
			</div>
		<#if (errors.name)??>
			<div class="Validform_checktip Validform_wrong">
				 <#list errors.name as err>
					${err}
				  </#list>
			</div>
		<#else> <div class="Validform_checktip"></div></#if>
		</div>
		<div  class="aline">
			<label>密  码：</label>
			<div>
				<input type="password" name="password" nullmsg="请输入密码！" errormsg="密码最多20个字符！"/>
			</div>
		<#if (errors.password)??>
			<div class="Validform_checktip Validform_wrong">
				 <#list errors.password as err>
					${err}
				  </#list>
			</div>
		<#else> <div class="Validform_checktip"></div></#if>
		</div>
		<div  class="aline">
			<input id="btn_sub" type="submit" value="登入"/> 
		</div>
		<div class="aline">
			<input id="rememberMe" name="rememberMe" type="checkbox" value="true" /><label for="rememberMe">记住我</label>
		</div>
		<div class="aline">
			<a href="/signup.html" class="buttonB register">免费注册</a>
		</div>
	</form> 
   </div>
<#include "footer.ftl">